package org.cfx.auth.mapper;

import org.cfx.auth.domain.AuthRolePermission;
import org.cfx.basic.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cfx
 * @since 2023-09-13
 */
@Repository
public interface AuthRolePermissionMapper extends BaseMapper<AuthRolePermission> {

    void batchSave(List<AuthRolePermission> permissions);

    List<Long> loadPermissionByRoleId(Long id);

    void removeByRoleId(Long id);

    void updatePermissions(List<AuthRolePermission> permissions);
}
